package com.qw.qrweb.service.impl;

import com.qw.qrweb.mapper.UserMapper;
import com.qw.qrweb.model.entity.UserEntity;
import com.qw.qrweb.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public boolean login(String username, String password) {
        return null != userMapper.getByUsername(username);
    }
}
